package com.xbjtech.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xbjtech.mapper.BusinessUserMapper;
import com.xbjtech.model.BusinessUser;
import com.xbjtech.model.BusinessUserExample;
import com.xbjtech.model.BusinessUserExample.Criteria;

@Service("businessUserService")
public class BusinessUserServiceImpl implements BusinessUserService {

	@Autowired
	BusinessUserMapper businessUserMapper;
	
	@Override
	public List<BusinessUser> selectAll() {
		BusinessUserExample example = new BusinessUserExample();
		Criteria criteria = example.createCriteria();
		criteria.andDeletedNotEqualTo(1);
		return businessUserMapper.selectByExample(example);
	}
	
}
